#include"Heap.h"




void test()
{
	int a[] = {11,10,9,8,7,6};
	HP hp;
	HeapInit(&hp);
	for(int i=0;i<6;i++)
	HeapPush(&hp,a[i]);
	HeapPrint(&hp);
	while (!HeapEmpty(&hp))
	{
		printf("%d  ", HeapTop(&hp));
		HeapPop(&hp);
	}
}




int main()
{
	test();
	return 0;
}

